
include('shared.lua')
include('gui/cl_hud.lua')
include('gui/cl_menu.lua')
include('gui/cl_skin.lua')


function GM:HUDPaint()
	for k, ply in pairs(player.GetAll()) do
		if not ply:Alive() then continue end
		if ( LocalPlayer():Team() != TEAM_WARRIORS and ply:Team() == TEAM_WARRIORS ) or (LocalPlayer():Team() == TEAM_WARRIORS and LocalPlayer():GetPos():Distance(ply:GetPos()) < 150 and LocalPlayer() != ply ) then
			local pos = ply:EyePos()
			pos.z = pos.z + 28
			pos = pos:ToScreen()
			draw.DrawText(ply:Nick(), "TargetID", pos.x + 1, pos.y + 1, Color(0, 0, 0, 255), 1)
			draw.DrawText(ply:Nick(), "TargetID", pos.x, pos.y, team.GetColor(ply:Team()), 1)
			draw.DrawText(ply:Health(), "TargetID", pos.x + 1, pos.y + 21, Color(0, 0, 0, 255), 1)
			draw.DrawText(ply:Health(), "TargetID", pos.x, pos.y + 20, Color(255,255,255,200), 1)
			
		end
	end
end